package com.zshan.clinic.admin.mapper.stock;


import com.zshan.clinic.admin.entity.vo.StockStorageVo;
import com.zshan.clinic.admin.entity.vo.StockSupplyVo;
import com.zshan.clinic.mybatis.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecStockSupplyMapper extends SuperMapper {

    /**
     * 查询供应商列表
     * @param clinicId
     * @param supplyName
     * @return
     */
    Long getSupplyCount(@Param("clinicId") Long clinicId,
                        @Param("supplyName") String supplyName);

    /**
     * 查询供应商列表
     * @param clinicId
     * @param supplyName
     * @param offset
     * @param limit
     * @return
     */
    List<StockSupplyVo> getSupplyList(@Param("clinicId") Long clinicId,
                                      @Param("supplyName") String supplyName,
                                      @Param("offset") Integer offset,
                                      @Param("limit") Integer limit);

    Long getStorageCount(@Param("clinicId") Long clinicId,
                         @Param("storageName") String storageName);

    List<StockStorageVo> getStorageList(@Param("clinicId") Long clinicId,
                                        @Param("storageName") String storageName,
                                        @Param("offset") Integer offset,
                                        @Param("limit") Integer limit);
}
